<template>
  <div>
      <el-carousel :interval="2000" type="card"  height="400px">
        <el-carousel-item v-for="item in 3" :key="item">
          <h3 class="medium"></h3>
        </el-carousel-item>
      </el-carousel>
  </div>
</template>

<script>
  export default {
    name: "",
    data() {
      return {
      }
    },methods: {}
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 400px;
    margin: 0;
  }
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
    background-image: url('../../assets/fengjing2.jpg');
    background-size: cover;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
    background-image: url('../../assets/fengjing1.jpg');
    background-size: cover;
  }
  .el-carousel__item:last-child {
    background-color: #99a9bf;
    background-image: url('../../assets/fengjing3.jpg');
    background-size: cover;
  }
</style>
